Skip to content

Instantly share code, notes, and snippets.

@ashokvarmamatta
ashokvarmamatta / GEMMA4_ON_DEVICE_GUIDE.md
Last active August 29, 2026 07:33
Run Gemma 4 On Your Android Phone — Complete Beginner's Guide (LiteRT LM SDK, Kotlin, on-device AI)

Run Gemma 4 On Your Android Phone — Complete Beginner's Guide (LiteRT LM SDK, Kotlin, on-device AI)

🧠 Run Gemma 4 On Your Android Phone

The Complete Beginner's Guide — From Zero to On-Device AI

Typing SVG
@karthink
karthink / avy-actions.el
Last active August 29, 2026 07:31
Supplementary code for Avy actions for Emacs
;; Code used in the demos at https://karthinks.com/software/avy-can-do-anything
;; Tweak as desired.
(package-install 'avy)
(setq avy-keys '(?q ?e ?r ?y ?u ?o ?p
?a ?s ?d ?f ?g ?h ?j
?k ?l ?' ?x ?c ?v ?b
?n ?, ?/))

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@sunmeat
sunmeat / task.md
Created August 29, 2026 07:17
ДЗ на створення елементів DOM та події

ДЗ: Гра «Сапер» (Minesweeper) на JavaScript

🎯 Мета

Закріпити роботу з DOM (createElement, appendChild), стилізацію через JS (element.style), обробку подій (addEventListener) та побудову логіки на функціях.


📋 Технічні вимоги

@GOROman
GOROman / ps1-bios-video-ripper-zx.md
Last active August 29, 2026 07:03
PS1 BIOS Video Ripper ZX 技術解説
@ahembree
ahembree / win11_restore_win10_context_menu.md
Last active August 29, 2026 07:03
Restore Windows 10 Right-Click Context Menu to Windows 11

The default Windows 11 right-click context menu is (in my opinion) awful and was an unnecessary change.

Switching back to Windows 10 Context Menu

If you're on Windows 11 and want the old Windows 10 right-click context menu, run the following command in a regular command prompt (NOT administrative):

reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
@srli
srli / image_steganography.py
Created March 5, 2017 20:37
Hide text in images using steganography!
"""A program that encodes and decodes hidden messages in images through LSB steganography"""
from PIL import Image, ImageFont, ImageDraw
import textwrap
def decode_image(file_location="images/encoded_sample.png"):
"""Decodes the hidden message in an image
file_location: the location of the image file to decode. By default is the provided encoded image in the images folder
"""
encoded_image = Image.open(file_location)